import React from 'react';

const LazyLoad = (path) => {
  const Component = React.lazy(() => import(`../views/sandbox/${path}`));
  return (
    <React.Suspense fallback={<>加载中...</>}>
      <Component/>
    </React.Suspense>
  )
};

export default LazyLoad;